package com.lizhi.yun.core.controller;

import com.lizhi.common.yun.entity.ListResponseResult;
import com.lizhi.yun.core.handler.PatientHandler;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: lizhi
 * @Description:
 * @Date: create in 2020/11/12 11:37
 */

@RefreshScope
@RestController
@RequestMapping(path = "/api/sfrobot/yun/patient")
public class PatientController {

    @Resource
    private PatientHandler patientHandler;

    @PostMapping(path = "/doMain")
    public ListResponseResult doMain(@RequestBody String json) {
        return patientHandler.doMain(json);
    }
}
